package com.roncoo.education.user.service.feign.biz;

import com.roncoo.education.user.feign.qo.UserQO;
import com.roncoo.education.user.feign.qo.UserTagQO;
import com.roncoo.education.user.feign.vo.UserTagVO;
import com.roncoo.education.user.feign.vo.UserVO;
import com.roncoo.education.user.service.dao.UserDao;
import com.roncoo.education.user.service.dao.UserTagDao;
import com.roncoo.education.user.service.dao.impl.mapper.entity.User;
import com.roncoo.education.user.service.dao.impl.mapper.entity.UserExample;
import com.roncoo.education.user.service.dao.impl.mapper.entity.UserTag;
import com.roncoo.education.util.base.Page;
import com.roncoo.education.util.base.PageUtil;
import com.roncoo.education.util.tools.BeanUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 用户基本信息
 *
 * @author wangrong
 */
@Component
public class FeignUserTagBiz {

	@Autowired
	private UserTagDao dao;

	public Page<UserTagVO> listForPage(UserTagQO qo) {
		UserExample example = new UserExample();
		Page<UserTag> page = dao.listForPage(qo.getPageCurrent(), qo.getPageSize(), example);
		return PageUtil.transform(page, UserTagVO.class);
	}

}
